package com.luych.toolbox.common.feign.intf.database.service;

import com.luych.toolbox.common.feign.FeignInterface;
import com.luych.toolbox.common.feign.param.data.service.DataSourceParam;
import com.luych.toolbox.common.feign.view.data.service.DataSourceView;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "data-service-data-source", name = "data-service", path = "/ds", decode404 = true)
public interface DataSourceFeign extends FeignInterface<DataSourceView, DataSourceParam> {

    @ApiOperation("获取密码")
    @GetMapping("/{id}/password")
    String password(@ApiParam(value = "ID") @PathVariable("id") String id);
}
